// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'

import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'

import config from '@/config'
import store from '@/store'
import echarts from 'echarts'
import api from '@/api/index'

Vue.config.productionTip = false
Vue.prototype.$config = config
Vue.prototype.$echarts = echarts
Vue.prototype.$api = api
Vue.prototype.$bus = new Vue()
Vue.config.productionTip = false

Vue.use(ViewUI)
Vue.use(Antd)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})
